<?php

namespace app\api\model;

use think\Model;

class BaseModel extends Model
{
    protected function prefixImgUrl($value,$data){
        $finalUrl = $value;
        if($data['from'] == 1)
            return $finalUrl = config('setting.img_prefix').$value;
        else{
            return $finalUrl;
        }
    }
}
